<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/appmanager/tabacco/Questionnaires.js此处编写
 -->
<template>
  <div>
    <view-grid
      ref="grid"
      :columns="columns"
      :detail="detail"
      :editFormFields="editFormFields"
      :editFormFileds="editFormFields"
      :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields"
      :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions"
      :table="table"
      :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/appmanager/tabacco/Questionnaires.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid
  },
  data () {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '问卷调查',
        name: 'tabacco/Questionnaires',
        url: '/Questionnaires/',
        sortName: 'id'
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: {},
      searchFormOptions: [],
      columns: [{field: 'id', title: 'id', type: 'bigint', sort: true, width: 90, hidden: true, readonly: true, require: true, align: 'left'},
        {field: 'typeid', title: '机构类别', type: 'string', width: 90, align: 'left', sortable: true},
        {field: 'groupid', title: '分组', type: 'string', width: 90, align: 'left'},
        {field: 'unitid', title: '机构', type: 'string', width: 90, align: 'left'},
        {field: 'answerscontent', title: '调查内容', type: 'string', width: 90, align: 'left'},
        {field: 'createdAt', title: 'createdAt', type: 'datetime', width: 90, align: 'left', sortable: true},
        {field: 'questuser', title: '调查人', type: 'string', width: 120, align: 'left'},
        {field: 'updatedAt', title: 'updatedAt', type: 'datetime', width: 90, align: 'left', sortable: true}],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: ''
      }
    }
  }
}
export default vueParam
</script>
